#!/bin/bash

# 从config.py中读取配置
PORT=$(python -c "from config import generate_audio_port; print(generate_audio_port)")
WORKER_NUM=$(python -c "from config import worker_num; print(worker_num)")

uvicorn generate_audio_api:app --host 0.0.0.0 --port $PORT --workers $WORKER_NUM 1>>tts_out.log 2>>tts_err.log &

